/*
 * @Description: 接口定义
 * @Autor: LiuGang
 * @Date: 2022-04-14 09:25:52
 * @LastEditors: LiuGang
 * @LastEditTime: 2022-12-27 16:27:54
 */
import request from '@/utils/request'

// 获取设备信息
export function getCameraInfo(query) {
    return request({
        url: '/camera/getCameraInfo',
        method: 'post',
        data: query,
    })
}

// 获取设备信息
export function addCameraInfo(query) {
    return request({
        url: '/camera/addCameraInfo',
        method: 'post',
        data: query,
    })
}

// 获取设备信息
export function modifyCameraInfo(query) {
    return request({
        url: '/camera/modifyCameraInfo',
        method: 'post',
        data: query,
    })
}

// 获取设备信息
export function delCameraInfo(query) {
    return request({
        url: '/camera/delCameraInfo',
        method: 'post',
        data: query,
    })
}

// 获取设备信息
export function getDeviceInfo(query) {
    return request({
        url: '/camera/deviceInfo',
        method: 'post',
        data: query,
    })
}

// 获得布控能力
export function capabilities(query) {
    return request({
        url: '/camera/capabilities',
        method: 'post',
        data: query,
    })
}

// 布控
export function alertStream(query) {
    return request({
        url: '/webSocket/alertStream',
        method: 'get',
        data: query,
    })
}
